import request from '@/utils/request'
// 文件上传接口
// export function fileupload(data){
//   return request({

//   })
// }

// 查询所有公告
export function getannounce(data){
  return request({
    url:'/zxqyfw/web/publicAnnouncement/getList',
    method:'get',
    data
  })
}
// 公告公示总数
export function getsum(data){
  return request({
    url:'/zxqyfw/web/publicAnnouncement/countAll',
    method:'get',
    params:data
  })
}
// 后台 公告总数统计
export function getpublicsum(){
  return request({
    url:'/zxqyfw/web/publicAnnouncement/countAnnouncement',
    method:'get',
  })
}
// 公示总数
export function getcountPublicity(data){
  return request({
    url:'/zxqyfw/web/publicAnnouncement/countPublicity',
    method:'get',
    params:data
  })
}
// 后台 获取公告列表
export function getList(data){
  return request({
    url:'/zxqyfw/web/publicAnnouncement/getList',
    method:'get',
    params:data
  })
}
// 后台 新增公告
export function addList(data){
  return request({
    url:'/zxqyfw/web/publicAnnouncement/addOne',
    method:'post',
    data
  })
}
//删除用户id
export function deleteById(data){
  return request({
    url:'/zxqyfw/web/publicAnnouncement/deleteById',
    method:'post',
    params:data
  })
}
// 修改公告公示状态
export function changePublicstatus(data){
  return request({
    url:'/zxqyfw/web/publicAnnouncement/updateStatus',
    method:'post',
    data
  })
}
// 公告公示置顶
export function pubtop(data){
  return request({
    url:'/zxqyfw/web/publicAnnouncement/top',
    method:'get',
    params:data
  })
}

